var LoadingAnimation = Class.create({
			timerId_ : 0,
			maxCount_ : 5,
			current_ : 0,
			maxDot_ : 3,
			inprogress : 0,
			paintFrame : function() {
				this.current_++;
				if (this.current_ >= this.maxCount_)
					this.current_ = 0;

				var text = "";
				for (var i = 0; i < this.maxDot_; i++) {
					text += ((i == this.current_) ? ' ' : '.');
				}

				chrome.browserAction.setBadgeText({
							text : text
						});

			},

			start : function() {
				return;
				this.inprogress++;

				if (this.timerId_)
					return;
				debugger;
				this.timerId_ = window.setInterval(this.paintFrame.bind(this),
						300);
			},

			stop : function() {
				return;
				this.inprogress--;
				if (this.inprogress > 0)
					return;

				if (!this.timerId_)
					return;

				window.clearInterval(this.timerId_);
				this.timerId_ = 0;
				chrome.browserAction.setBadgeText({
							text : ""
						});
			}
		});
